<template>
	<view>
		<u-calendar v-model="show" :mode="mode" @change="change"></u-calendar>
		<u-button @click="show = true">打开</u-button>
		<text space="ensp">{{ JSON.stringify(e, null, 2) }}</text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: true,
				mode: 'range'
			}
		},
		methods: {
			change(e) {
				this.e = e;
			}
		}
	}
</script>